/**
 * Created by Shaobing on 24/05/2014.
 */
public class RightAngleN {
    private final int _n;

    public RightAngleN(int n) {
        _n = n;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();

        for(int i = 1; i <= _n; i++)
        {
            stringBuilder.append(drawLine(i));
        }
        return stringBuilder.toString();
    }

    private String drawLine(int n )
    {
        return new AsteriskN(n).toString();
    }
}
